package com.zbkj.service.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zbkj.common.model.order.RechargeOrder;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 用户充值表 Mapper 接口
 */
public interface RechargeOrderDao extends BaseMapper<RechargeOrder> {

    List<RechargeOrder> getAdminPage(Map<String, Object> map);

    /**
     * 根据用户id查询用户充值的总金额
     *
     * @param uid
     * @param orderNo
     * @return
     */
    BigDecimal selectRechargePriceByUid(@Param("uid") Integer uid, @Param("orderNo") String orderNo);
}
